using System;
using System.Collections.Generic;
using System.Text;

namespace Mud.Common.Messages
{

	/// <summary>
	/// CommandFactory will do a search for all classes which have this attribute applied
	/// in order to find a class which can handle specific command message.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
	public class MessageHandlerAttribute : Attribute
	{

		public MessageTypeIds MessageTypeId {
			get { return _messageTypeId; }
		}
		private MessageTypeIds _messageTypeId;


		public MessageHandlerAttribute(MessageTypeIds type) {
			_messageTypeId = type;
		}
	}
}
